<?php

namespace app\admin\model\aaindexcate;

use think\Model;


class Good extends Model
{

    

    

    // 表名
    protected $name = 'aaindexgood';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    







    public function aaindexcate()
    {
        return $this->belongsTo('app\admin\model\Aaindexcate', 'aaindexcate_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }


    public function product()
    {
        return $this->belongsTo('app\admin\model\unishop\Product', 'unishop_product_ids', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}
